From bb7dc58a3d03c28efd7cccaf272a22e688ea94c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Tue, 31 Mar 2026 21:39:05 +0200 Subject: [PATCH] portalHelper: Set up accels from app Setting up accels is an app action, so doing it from the app is a more natural place than repeating it for each window (even if the common case is a single window for the entire process lifetime). Part-of: --- js/portalHelper/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 7004a3279..46bd074d4 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -157,8 +157,6 @@ class PortalWindow extends Gtk.ApplicationWindow { this.set_child(this._webView); this.maximize(); this.present_with_time(timestamp); - - this.application.set_accels_for_action('app.quit', ['q', 'w']); } _syncUri() { @@ -302,6 +300,8 @@ class WebPortalHelper extends Adw.Application { const action = new Gio.SimpleAction({name: 'quit'}); action.connect('activate', () => this.active_window.destroy()); this.add_action(action); + + this.set_accels_for_action('app.quit', ['q', 'w']); } vfunc_dbus_register(connection, path) { -- 2.39.5